#include <stdio.h>
#include "include/gestion_garage.h"
#include "include/voiture.h"
#include "include/menu.h"

#define MAX 100

int main()
{
	Voiture garage[MAX];
	char immat[]="123456";
	int n=0,out=0;
	while(out==0)
	{
	afficher_menu();
	switch(choix_menu())
	{
	  case 1:ajouter_voiture(garage,&n);break;
	  case 2:supprimer_voiture(garage,immat,&n);break;
	  case 3:afficher_garage(garage,n);break;
	  case 4:init_garage(garage,&n);break;
	  case 99:out=1;break;
	  default:printf("mauvais choix\n");
	}
	}
	return 0 ;
}
